package fr.channel.server.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(detachable="true")
public class Joueur {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	@Persistent
	private String cliendId;

	@Persistent
	private String name;

	public Joueur(final String pName) {
		this.name = pName;
	}

	public final Key getKey() {
		return key;
	}

	public final void setKey(final Key pKey) {
		this.key = pKey;
	}

	public final String getName() {
		return name;
	}

	public final void setName(final String pName) {
		this.name = pName;
	}

	public String getCliendId() {
    	return cliendId;
    }

	public void setCliendId(String cliendId) {
    	this.cliendId = cliendId;
    }
}
